#pragma once

#include "Profile.h"

class ProfileManager
{
	ProfileManager(void);
	~ProfileManager(void);

	static ProfileManager* pInstance;

	ProfileManager( const ProfileManager& );				// copy ctor
	ProfileManager& operator= ( const ProfileManager& );	// assignment op

	Profile* profiles[5];
	int curProfile;
public:
	static ProfileManager* GetInstance( void );
	static void DeleteInstance( void );

	Profile& getCurProfile(void);
	int		 getCurProfileNum(void)			{return curProfile;};
	Profile* getProfile(int profileToGet);
	void setCurProfile(int profile);
	//returns succeeded/failed
	bool createProfile(int profileToCreate);
	void deleteProfile(int profileToDelete);

	void loadProfiles();
	void saveProfiles() const;
};

